import json


def build_data(json_file,key1,key2,key3,key4):
    test_data=[]
    with open(json_file,"r") as f:
        json_data = json.load(f)
        for case_data in json_data:
            username=case_data.get(key1)
            password=case_data.get(key2)
            rememberMe=case_data.get(key3)
            code=case_data.get(key4)
            test_data.append((username,password,rememberMe,code))
    return  test_data
